#ifndef _IPT_ZESA_H
#define _IPT_ZESA_H

#define BM_MAX_NLEN					256
#define BM_MAX_HLEN					2048
#define CHAR_MAX_LEN				255
#define STR_MAX_LEN					2048

#define MATCH_BEGIN					'+'
#define MATCH_END					'-'
#define FTP_PORT					21
#define SMTP_PORT					25
#define HTTP_PORT					80
#define HTTP_SET_COOKIE				"Set-Cookie:"
#define HTTP_ACCEPT_ENCODE			"Accept-Encoding:"

#define IPT_STRING_NEEDLE_THRESH	20
#define IPT_STRING_HAYSTACK_THRESH	100

typedef char *(*proc_ipt_search)(char *, char *, int, int, char *);

struct ipt_ZeSA_info {
    u_int8_t port;
    unsigned char cmd[STR_MAX_LEN];
    unsigned char param[STR_MAX_LEN];
    unsigned char content[STR_MAX_LEN];
    unsigned char replace[STR_MAX_LEN];
    u_int8_t cookie;
    u_int8_t encoding;
    u_int8_t tag;
    u_int8_t rst;
};

#endif /* _IPT_ZESA_H */
